package cn.zl.mapper;

import cn.yunbamboos.mybatis.annotation.CustomQuery;
import cn.yunbamboos.mybatis.annotation.GenerateXML;
import cn.yunbamboos.mybatis.mapper.GenericMapper;
import cn.zl.model.Platform;
import org.springframework.stereotype.Repository;

@GenerateXML
@Repository
public interface PlatformMapper extends GenericMapper<Platform> {

    default Platform queryByServerGBId(String deviceId){
        return null;
    }

    @CustomQuery(sql = "select count(1) from zl_platform", resultType = Integer.class)
    int total();
}
